package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: TaskSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-18
 * @Version: 1.0
 * Table: pear_task
 * Comment:
 * 任务表
 */
public class TaskSuperController extends BaseController {
    @Autowired
    TaskService service;

    public Integer addTask(TaskAddRequest request) throws Exception {
        return service.addTask(request);
    }

    public Integer updateTask(TaskUpdateRequest request) throws Exception {
        return service.updateTask(request);
    }

    public Integer deleteTask(TaskDeleteRequest request) throws Exception {
        return service.deleteTask(request);
    }

    public TaskQueryResponse queryTask(TaskQueryRequest request) throws Exception {
        return service.queryTask(request);
    }

    public List<TaskQueryResponse> listTask(TaskQueryRequest request) throws Exception {
        return service.listTask(request);
    }

    public Integer countTask(TaskQueryRequest request) throws Exception {
        return service.countTask(request);
    }

    public BaseStatResponse statTask(TaskQueryRequest request) throws Exception {
        return service.statTask(request);
    }


}
